#define _CRT_SECURE_NO_WARNINGS

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
int main()
{
	//umask(0);
	int fd = open("log.txt", O_WRONLY | O_CREAT | O_APPEND, 0666);
	//const char* msg = "hello file system call!!!!!!!!!!!!!!!!!!!!\n";
	const char* msgb = "hello file system zybbbbbbbbbbbbbbbbbbbbb!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";
	//write(fd, msg, strlen(msg));
	write(fd, msgb, strlen(msgb));
	close(fd);
	return 0;
}